package com.zlop.cloud.business.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.zlop.cloud.business.feign.client.UserFeignClient;

@RestController
public class UserController {
	
	@Autowired
	private UserFeignClient userFeignClient;
	
	@GetMapping("/listUsersByFeign")
    public String listUsers(){
		String users = userFeignClient.listUsers();
        return users;
    }
	
}
